const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');//引入分页模块
var ProductSchema = new mongoose.Schema({
    title:String,
    desc:String,
    timer:String,
    pinglun:String,
    cateId:mongoose.Schema.ObjectId
});
ProductSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Product',  ProductSchema);;
